import request from "@/config/request";

export function postLogin(data) {
    return request({
        url: '/login/login',
        method: 'post',
        data: data
    });
}
export function getDishList(data) {
    return request({
        url: '/goods/goods-tree',
        method: 'get',
        data: data
    });
}
export function addDishToCart(data) {
    return request({
        url: '/cart/add-cart',
        method: 'post',
        data: data
    });
}
export function cartDeleteDish(data) {
    return request({
        url: '/cart/delete-cart',
        method: 'post',
        data: data
    });
}
export function getCartList(data) {
    return request({
        url: '/cart/get-customer-cart',
        method: 'get',
        data: data
    });
}
export function finalOrderDown(data) {
    return request({
        url: '/order/create-order',
        method: 'post',
        data: data
    });
}
export function preDoPay(data) {
    return request({
        url: '/coffee-order-pay/pre-pay',
        method: 'post',
        data: data
    });
}
export function finalDoPay(data) {
    return request({
        url: '/coffee-order-pay/do-pay',
        method: 'post',
        data: data
    });
}
export function getOrderList(data) {
    return request({
        url: '/order/page-order-for-customer',
        method: 'get',
        data: data
    });
}
export function getAddressList(data) {
    return request({
        url: '/customer-address/list-customer-address',
        method: 'get',
        data: data
    });
}